<#include "/common/head.ftl">

<#macro formatOnStudent student>
	<#if student.studying>
		background-color:yellow
	</#if>
</#macro>

<br/>

<@display.table id="listTable" name="students" sort="list" pagesize="18">
	<@display.column title="${i18n.getMessage('no')}" style="text-align:center">${listTable_rowNum}</@display.column>
	<#if listTable.studying>
		<@display.column title="${i18n.getMessage('lastName')}" property="lastName" sortable="true" style="width:160px;background-color:yellow"></@display.column>
		<@display.column title="${i18n.getMessage('firstName')}" property="firstName" sortable="true" style="width:100px;background-color:yellow"></@display.column>
	<#else>
		<@display.column title="${i18n.getMessage('lastName')}" property="lastName" sortable="true" style="width:160px"></@display.column>
	<@display.column title="${i18n.getMessage('firstName')}" property="firstName" sortable="true" style="width:100px"></@display.column>	
	</#if>
	<@display.column title="${i18n.getMessage('gender')}" sortable="true" style="text-align:center;width:80px">${i18n.getMessage((listTable.gender.key)!)}</@display.column>
	<@display.column title="${i18n.getMessage('dateOfBirth')}" property="dateOfBirth" format="{0, date, ${i18n.getMessage('format.date')}}" sortable="true" style="text-align:center" style="text-align:center;width:120px"></@display.column>
	<@display.column title="${i18n.getMessage('phoneNumber')}" style="width:200px">${(listTable.phoneNumber)!}</@display.column>
	<@display.column title="${i18n.getMessage('study')}" style="text-align:center"><img src="../images/study.gif" style="cursor:pointer;height:15px" onclick="displayPopup('showStudentInfo.sgt?studentId=${listTable.id}');return false"/></@display.column>
</@display.table>